Note: This statement is named Select Range in the Add Statement dialog box.
Selects a range based on cursor position. For example, in the string 'The cow jumped over the moon', to select 'The cow', 1 is the starting number because it is the cursor position before the 'T' and 8 is the ending number because it is the cursor position after the 'w'.
Syntax
Range(StartIndex, EndIndex)
Arguments
| Argument | Description |
|---|---|
| StartIndex | Index of first character to select. |
| EndIndex | Index of last character to select. |
Supported objects
ComboBox, EditBox, SpinBox
Example
Window("CRMContact").EditBox("textBoxEmail").Range(1, 5)